<!DOCTYPE html>

<html style="background-color: white;">

	<head>
		<meta charset="utf-8">
		<title>Lambkit 管理平台</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">

		<link rel="stylesheet" href="#(ctx)/lambkit/assets/libs/layui/css/layui.css" media="all">
		<link rel="stylesheet" href="#(ctx)/lambkit/assets/css/style.css">
		<link rel="stylesheet" href="#(ctx)/lambkit/assets/css/index.css">
	</head>

	<body>
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header">
				<div class="layui-logo">Lambkit 管理平台</div>
				<!-- 头部区域（可配合layui已有的水平导航） -->
				<ul class="layui-nav layui-layout-left">
					<li class="layui-nav-item">
						<a href="#(ctx)/lambkit/dev">控制台</a>
					</li>
					<li class="layui-nav-item">
						<a href="#(ctx)/lambkit/node">节点管理</a>
					</li>
					<li class="layui-nav-item">
						<a href="#(ctx)/lambkit/dev/mgrdb">数据管理</a>
					</li>
					<li class="layui-nav-item layui-this">
						<a href="#">帮助文档</a>
					</li>
				</ul>
				#if(auth)
				<ul class="layui-nav layui-layout-right">
					<li class="layui-nav-item">
						<i class="layui-icon layui-icon-username" style="color: #FFFFFF;"></i>&nbsp;#(auth.user.realname??)
					</li>
				</ul>
				#end
			</div>
		</div>
		<div class="layui-main site-inline">
			<div class="site-tree">
				<ul class="layui-tree">
					<li>
						<h2>基础说明</h2></li>
					<li class="site-tree-noicon layui-this">
						<a href="#(ckey)/">
							<cite>开始使用</cite>
							<em>Getting Started</em>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>常见问题</cite>
							<em>FAQ</em>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>更新日志</cite>
						</a>
					</li>
					<li>
						<h2>项目开发</h2></li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Hello World</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>配置与模块化</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Test开发</cite>
						</a>
					</li>
					<li>
						<h2>外部组件</h2></li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Druid</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Hikari</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Ehcache</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Redis</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Shiro</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Swagger</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Zbus</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Montan</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Jetty</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>TongLinkQ</cite>
						</a>
					</li>
					<li>
						<h2>功能模块</h2></li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>注解</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>事件</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>消息机制</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>用户登录</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>单点登录</cite>
						</a>
					</li>
					<li>
						<h2>分布式</h2></li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>分布式Session</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>RPC</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>微服务</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>分布式节点管理</cite>
						</a>
					</li>
					<li>
						<h2>监控</h2></li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>系统监控</cite>
						</a>
					</li>
					<li class="site-tree-noicon ">
						<a href="#(ckey)/base">
							<cite>Lambkit管理平台</cite>
						</a>
					</li>
				</ul>
			</div>
			<div class="site-content">
				<h1 class="site-h1">开始使用 - 入门指南</h1>
				<blockquote class="layui-elem-quote">
					Lambkit是基于JFinal的分布式Javaweb快速开发框架，其核心设计目标是极速开发，快速应用。将项目开发的基本要素集合成企业级开发解决方案，快速搞定项目，为您节约更多时间，去陪恋人、家人和朋友 ;)
				</blockquote>
				
				<fieldset class="layui-elem-field layui-field-title site-title">
					<legend>
						<a name="quickstart">集成了多种流行技术</a>
					</legend>
				</fieldset>
				<blockquote class="layui-elem-quote layui-quote-nm">
					shiro、redis、ehcache、swagger、montan、zbus、TongLinkQ。
				</blockquote>
				
				<fieldset class="layui-elem-field layui-field-title site-title">
					<legend>
						<a name="quickstart">开发了多种基础功能</a>
					</legend>
				</fieldset>
				<blockquote class="layui-elem-quote layui-quote-nm">
					mq、rpc、mail、WebSocket、分布式节点、反向代理、代码自动生成、动态表单、动态SQL、多维分析、表格动态管理。
				</blockquote>
				
				<fieldset class="layui-elem-field layui-field-title site-title">
					<legend>
						<a name="quickstart">实现了多种应用功能</a>
					</legend>
				</fieldset>
				<blockquote class="layui-elem-quote layui-quote-nm">
					微服务架构、基于zbus或motan的RPC框架、用户与权限管理、基于Redis的分布式session技术、基于zbus的消息框架、E-Mail后台发送技术、后台接口展示技术、分布式节点动态管理、自定义反向代理。 
				</blockquote>
				
				<fieldset class="layui-elem-field layui-field-title site-title">
					<legend>
						<a name="quickstart">配套了多种独立系统</a>
					</legend>
				</fieldset>
				<blockquote class="layui-elem-quote layui-quote-nm">
					UPMS单点登录系统、集成GeoServer地图发布系统等，应用于不同的行业。 
				</blockquote>
				
				<fieldset class="layui-elem-field layui-field-title site-title">
					<legend>
						<a name="quickstart">持续更新</a>
					</legend>
				</fieldset>
				<blockquote class="layui-elem-quote layui-quote-nm">
					Lambkit是在我们项目开发过程中不断学习和积累起来的一个基础开发框架，我们将一直不断完善和更新。
				</blockquote>
				<p style="margin-bottom: 20px; text-align: center">
				</p>

				<fieldset class="layui-elem-field layui-field-title site-title">
					<legend>
						<a name="quickstart">快速上手</a>
					</legend>
				</fieldset>
				<div class="site-text">
					<p>获得 lambkit 后，将其完整地部署到你的项目中，你只需要引入下述五个文件：</p>
					<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">code</h3><ol class="layui-code-ol"><li>lambkit.jar</li><li>lambkit.properties</li><li>ehcache.xml</li><li>shiro.ini</li><li>pom.xml</li><li>	</li></ol></pre>
					<p>在web.xml中插入：</p>
					<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">code</h3><ol class="layui-code-ol"><li class="L0"><span class="tag">&lt;filter&gt;</span></li><li class="L1"><span class="pln">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tag">&lt;filter-name&gt;</span><span class="pln">jfinal</span><span class="tag">&lt;/filter-name&gt;</span></li><li class="L2"><span class="pln">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tag">&lt;filter-class&gt;</span><span class="pln">com.jfinal.core.JFinalFilter</span><span class="tag">&lt;/filter-class&gt;</span></li><li class="L3"><span class="pln">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tag">&lt;init-param&gt;</span></li><li class="L4"><span class="pln">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tag">&lt;param-name&gt;</span><span class="pln">configClass</span><span class="tag">&lt;/param-name&gt;</span></li><li class="L5"><span class="pln">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tag">&lt;param-value&gt;</span><span class="pln">com.lambkit.DefaultJFinalConfig</span><span class="tag">&lt;/param-value&gt;</span></li><li class="L6"><span class="pln">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tag">&lt;/init-param&gt;</span></li><li class="L7"><span class="tag">&lt;/filter&gt;</span></li><li class="L8"><span class="tag">&lt;filter-mapping&gt;</span></li><li class="L9"><span class="pln">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tag">&lt;filter-name&gt;</span><span class="pln">jfinal</span><span class="tag">&lt;/filter-name&gt;</span></li><li class="L0"><span class="pln">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tag">&lt;url-pattern&gt;</span><span class="pln">/*</span><span class="tag">&lt;/url-pattern&gt;</span></li><li class="L1"><span class="tag">&lt;/filter-mapping&gt;</span></li><li>      </li></ol></pre>
					<p>启动项目：</p>
					<p>在任意一个类文件中添加一个main启动集成的jetty如下图所示：</p>
					<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">code</h3><ol class="layui-code-ol"><li class="L0"><span class="kwd">public</span><span class="pln">&nbsp;</span><span class="kwd">static</span><span class="pln">&nbsp;</span><span class="kwd">void</span><span class="pln">&nbsp;main</span><span class="pun">(</span><span class="typ">String</span><span class="pun">[]</span><span class="pln">&nbsp;args</span><span class="pun">)</span><span class="pln">&nbsp;</span><span class="pun">{</span></li><li class="L1"><span class="pln">	</span><span class="com">//&nbsp;eclipse&nbsp;下的启动方式</span></li><li class="L2"><span class="pln">	</span><span class="typ">JFinal</span><span class="pun">.</span><span class="pln">start</span><span class="pun">(</span><span class="str">"src/main/webapp"</span><span class="pun">,</span><span class="pln">&nbsp;</span><span class="lit">80</span><span class="pun">,</span><span class="pln">&nbsp;</span><span class="str">"/"</span><span class="pun">,</span><span class="pln">&nbsp;</span><span class="lit">5</span><span class="pun">);</span></li><li class="L3"><span class="pun">}</span></li><li>      </li></ol></pre>
				</div>

			</div>
		</div>
		<script src="#(ctx)/lambkit/assets/libs/layui/layui.js" charset="utf-8"></script>
		<script src="#(ctx)/lambkit/assets/jquery.min.js" charset="utf-8"></script>
		<script>
			//JavaScript代码区域
			layui.use(['code', 'element'], function() {
				var element = layui.element;
			});

			$(document).ready(function() {
				var main = $('.site-tree').parent(),
					scroll = function() {
						var stop = $(window).scrollTop();

						if($(window).width() <= 750) return;
						var bottom = $(window).height();
						if(stop > 61 && stop < bottom) {
							if(!main.hasClass('site-fix')) {
								main.addClass('site-fix');
							}
							if(main.hasClass('site-fix-footer')) {
								main.removeClass('site-fix-footer');
							}
						} else if(stop >= bottom) {
							if(!main.hasClass('site-fix-footer')) {
								main.addClass('site-fix site-fix-footer');
							}
						} else {
							if(main.hasClass('site-fix')) {
								main.removeClass('site-fix').removeClass('site-fix-footer');
							}
						}
						stop = null;
					};
				scroll();
				$(window).on('scroll', scroll);
			});
		</script>
	</body>

</html>